package com.cn.crmsystem.mapper.censusMapper;

import com.cn.crmsystem.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
//from ldk
@Repository
public interface MoneyCensusMapper {
    //柱状图
    //合同金额统计
    List<Map<String,Object>> moneyCensus(Map<String, Object> map);
    //回款金额统计
    List<Map<String,Object>> returnMoneyCensus(Map<String, Object> map);


    //排行榜
    //回款排行
    List<Map<String,Object>> rankingReturnMoney(Map<String, Object> map);
    //合同金额排行
    List<Map<String,Object>> rankingcontractMoney(Map<String, Object> map);
    //合同个数排行
    List<Map<String,Object>> rankingcontractCountMoney(Map<String, Object> map);
    //新增客户数排行
    List<Map<String,Object>> rankingnewaddCustomer(Map<String, Object> map);
    //新增联系人排行
    List<Map<String,Object>> rankingnewaddContacts(Map<String, Object> map);
    //新增商机排行
    List<Map<String,Object>> rankingnewaddOpportunity(Map<String, Object> map);
    //新增商机金额排行
    List<Map<String,Object>> rankingnewaddOpportunityMoney(Map<String, Object> map);
    //新增跟进记录排行
    List<Map<String,Object>> rankingnewaddFollow(Map<String, Object> map);



    //旋转表的数据
    //合同
    List<Map<String,Object>> selectMoneyCensusRotating(Map<String, Object> map);
    //回款
    List<Map<String,Object>> returnMoneyCensusRotating(Map<String, Object> map);
}
